/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session;

import java.util.List;
import javax.ejb.Remote;
import model.Employee;

/**
 *
 * @author HuyNVK
 */
@Remote
public interface EmployeeFacadeRemote {

    void create(Employee employee);

    void edit(Employee employee);

    void remove(Employee employee);

    Employee find(Object id);

    List<Employee> findAll();

    List<Employee> findRange(int[] range);

    int count();
    
    Employee merge(Employee employee);
    
    void deleteByID(int id);
    
    void insert(Employee employee);

    public void save(model.Employee employee);
    

    int selectIDByPassName(String shortname , String password) throws Exception;
    
    Employee selectByShortName(String shortname) throws Exception;

}
